Fill the custom palette up some more
authorMatthias Clasen <mclasen@redhat.com>
Thu, 9 Feb 2012 03:04:49 +0000 (22:04 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Feb 2012 21:37:00 +0000 (16:37 -0500)
tests/testcolorchooser.c

index 5dffae4c75fe9dc87136dedd8eede339b1a72e46..84b857e8614cc113b17fd14f470977e792b280a2 100644 (file)
@@ -85,14 +85,14 @@ main (int argc, char *argv[])
         }
       else if (g_strcmp0 (argv[i], "--palette") == 0)
         {
-          const gchar *c[4] = { "red", "maroon", "yellow", "green" };
+          const gchar *c[9] = { "red", "maroon", "yellow", "green", "blue", "magenta", "DarkOliveGreen4", "khaki2", "thistle1" };
           GdkRGBA color;
-          GdkRGBA colors[36];
+          GdkRGBA colors[9*9];
           gint i,j;
           gdouble f[5] = { 0.2, 0.35, 0.5, 0.65, 0.8 };
 
           g_print ("setting custom palette\n");
-          for (i = 0; i < 4; i++)
+          for (i = 0; i < 9; i++)
             {
               gdk_rgba_parse (&color, c[i]);
               for (j = 0; j < 5; j++)
@@ -112,7 +112,7 @@ main (int argc, char *argv[])
             }
           gtk_color_chooser_add_palette (GTK_COLOR_CHOOSER (dialog),
                                          FALSE,
-                                         9, 36,
+                                         9, 9*9,
                                          colors);
         }
     }